package com.personal.website.lottery.spider;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by 10171225 on 2016/2/17.
 */
public class Boot {
    public static void main(String[] args){

        final Spider spider = new Spider();
        while(true){
            new Thread(){
                @Override
                public void run() {
                    spider.execute();
                }
            }.start();

            try {
                Thread.sleep(Util.nextTime(spider.getSpiderProperties()));
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
